module.exports = Behavior({
    behaviors: [],
    properties: {
        myBehaviorProperty: {
            type: String
        }
    },
    data: {
        myBehaviorData: '11111'
    },
    created: function () {
        // console.log('[my-component] created')
    },
    attached: function () {
        // console.log('[my-component] attached')
    },
    ready: function () {
        // console.log('[my-component] ready')
    },
    methods: {
        myBehaviorMethod() {
            console.log('这是执行myBehavior内的方法')
            console.log(this.data.myBehaviorData)
            this.setData({
                myBehaviorData: '22222'
            })
            console.log(this.data.myBehaviorData)

            // this.data.myBehaviorData = '222222'
        }
    }
})